package com.zimi.mapper;

import com.zimi.model.WfActivity;
import com.zimi.model.WfActivityVO;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WfActivityMapper {
    int deleteByPrimaryKey(Integer wfaId);

    int insert(WfActivity record);

    int insertSelective(WfActivity record);

    @Select("SELECT LAST_INSERT_ID() as id")
    int lastInsertId();

    WfActivity selectByPrimaryKey(Integer wfaId);

    int updateByPrimaryKeySelective(WfActivity record);

    int updateByPrimaryKey(WfActivity record);

    List<WfActivity> selectAll(WfActivity record);

    List<WfActivityVO> selectAllVO(WfActivityVO record);

    List<WfActivity> listAllByWfActivityNoStartEnd(WfActivity record);
}